using UnityEngine;
using System.Collections;

public class HeroAnimHandler : MonoBehaviour 
{
    private Hero mHero;

	// Use this for initialization
	void Start () 
    {
        mHero = this.transform.parent.GetComponent<Hero>();
	}
	
	// Update is called once per frame
	void Update () {
	
	}

    void JumpStartEnd()
    {
        mHero.SwitchJumpState(Character.E_JUMP_STATES.Jump_Loop);
    }

    void JumpLandEnd()
    {
        mHero.SwitchJumpState(Character.E_JUMP_STATES.Jump_Done);
    }

    void JumpLandRunEnd()
    {
        mHero.SwitchJumpState(Character.E_JUMP_STATES.Jump_Done);
    }
}
